package com.one.shopping.entity;

/**
 * @author 谢惠锌
 * @date 创建时间：2016-1-6 下午10:49:56
 * @version 1.0
 * 订单表实体类
 */
public class Orders {
	private String id;
	private String goodsId;
	private int quantity;
	private double total;
	private String date;
	private int cardId;
	private int goodLuck;
	private int userId;
	
	public String getGoodsId() {
		return goodsId;
	}
	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}
	public int getQuantity() {
		return quantity;
	}
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public double getTotal() {
		return total;
	}
	public void setTotal(double total) {
		this.total = total;
	}
	public int getCardId() {
		return cardId;
	}
	public void setCardId(int cardId) {
		this.cardId = cardId;
	}
	public int getGoodLuck() {
		return goodLuck;
	}
	public void setGoodLuck(int goodLuck) {
		this.goodLuck = goodLuck;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	
	
	public Orders(String id, String goodsId, int quantity, double total,
			String date) {
		super();
		this.id = id;
		this.goodsId = goodsId;
		this.quantity = quantity;
		this.total = total;
		this.date = date;
	}
	public Orders(String id, double total, int cardId, int goodLuck, int userId) {
		super();
		this.id = id;
		this.total = total;
		this.cardId = cardId;
		this.goodLuck = goodLuck;
		this.userId = userId;
	}
	public Orders() {
		super();
	}
	@Override
	public String toString() {
		return "Order [id=" + id + ", total=" + total + ", cardId=" + cardId
				+ ", goodLuck=" + goodLuck + ", userId=" + userId + "]";
	}
	
	
	
}
